package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.entity.TaskQuestion;
import com.scuec.groupfive.mapper.TaskQuestionMapper;
import com.scuec.groupfive.service.TaskQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Service
public class TaskQuestionServiceImpl implements TaskQuestionService {

    @Autowired
    private TaskQuestionMapper taskQuestionMapper;

    @Override
    @Transactional
    public void batchAddTaskQuestions(List<TaskQuestion> taskQuestions) {
        taskQuestionMapper.batchInsert(taskQuestions);
    }
}